﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Content
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Content</h2>
    <table>
        <thead style="font-style:italic;">
            <tr>
                <td>
                    Brand
                </td>
                <td>
                    Model
                </td>
                <td>
                    Description
                </td>
                <td>
                    Price
                </td>
            </tr>
        </thead>
        <tbody>
            <% foreach (internet_shop.Models.Product p in ((List<internet_shop.Models.Product>)ViewData["Content"]))
               { %>
            <tr>
                <td>
                    <%= p.Brand %>
                </td>
                <td>
                    <%= p.Model %>
                </td>
                <td>
                    <%= p.Description %>
                </td>
                <td>
                    <%= p.Price %>
                </td>
            </tr>
            <%} %>
        </tbody>
    </table>
</asp:Content>
